package com.cungmua.app.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Created by kelvin.nguyen on 6/17/14.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class Deal {
    private int id;
    private String shortName;
    private int discountPercent;
    private int marketPrice;
    private int price;
    private String imageUrl;
    private int totalRegistry;
    private boolean hasExpressShip;
    private boolean hasParentProduct;


    @JsonProperty("Id")
    public void setId(int id) {
        this.id = id;
    }

    @JsonProperty("ShortName")
    public void setShortName(String shortName) {
        this.shortName = shortName;
    }

    @JsonProperty("DiscountPercent")
    public void setDiscountPercent(int discountPercent) {
        this.discountPercent = discountPercent;
    }

    @JsonProperty("MartketPrice")
    public void setMarketPrice(int marketPrice) {
        this.marketPrice = marketPrice;
    }

    @JsonProperty("Price")
    public void setPrice(int price) {
        this.price = price;
    }

    @JsonProperty("ImageUrl")
    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    @JsonProperty("TotalRegistry")
    public void setTotalRegistry(int totalRegistry) {
        this.totalRegistry = totalRegistry;
    }

    @JsonProperty("IsExpressShip")
    public void setHasExpressShip(boolean hasExpressShip) {
        this.hasExpressShip = hasExpressShip;
    }

    @JsonProperty("IsParentProduct")
    public void setHasParentProduct(boolean hasParentProduct) {
        this.hasParentProduct = hasParentProduct;
    }


    public int getId() {
        return id;
    }

    public String getShortName() {
        return shortName;
    }

    public int getDiscountPercent() {
        return discountPercent;
    }

    public int getMarketPrice() {
        return marketPrice;
    }

    public int getPrice() {
        return price;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public int getTotalRegistry() {
        return totalRegistry;
    }

    public boolean isHasExpressShip() {
        return hasExpressShip;
    }


    public boolean isHasParentProduct() {
        return hasParentProduct;
    }
}
